#!/bin/bash

UNIDCT='uni.dct'
BIDCT='bi.dct'
uni='uni.src'
bi='bi.src'

if [ ! -f $uni ];then
	echo $uni not exit
	exit 2
fi
if [ ! -f $bi ];then
	echo $bi not exit
	exit 3
fi

while read line
do
	flag=`echo $line|grep '@'`
	if [ -z $flag ];then
		echo -e $line"\tus\t"0 >> $UNIDCT
	else
		echo -e $line"\tus\t"1 >> $BIDCT
	fi
done 
